package com.bs.service.impl;

import java.util.List;

import com.bs.bean.Hospital;
import com.bs.dao.HospitalDAO;
import com.bs.service.HospitalService;

public class HospitalServiceImpl implements HospitalService {

	private HospitalDAO hospitalDao;
	
	public HospitalDAO getHospitalDao() {
		return hospitalDao;
	}

	public void setHospitalDao(HospitalDAO hospitalDao) {
		this.hospitalDao = hospitalDao;
	}

	@Override
	public void save(Hospital hospital) {
		this.hospitalDao.save(hospital);
	}

	@Override
	public int delete(String ids){
		return this.hospitalDao.batchDelete(ids);
	}

	@Override
	public List<Hospital> query(Hospital hospital) {
		return this.hospitalDao.query(hospital);
	}
	
	

}
